home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / network / file-tra / rdist-6.1 / rdist-6 / rdist-6.1.0-linuxpl2 / config / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-01-07  |  4.5 KB  |  127 lines

  1. /*
  2.  * Copyright (c) 1993 Michael A. Cooper
  3.  * Copyright (c) 1993 Regents of the University of California.
  4.  * All rights reserved.
  5.  *
  6.  * Redistribution and use in source and binary forms, with or without
  7.  * modification, are permitted provided that the following conditions
  8.  * are met:
  9.  * 1. Redistributions of source code must retain the above copyright
  10.  *    notice, this list of conditions and the following disclaimer.
  11.  * 2. Redistributions in binary form must reproduce the above copyright
  12.  *    notice, this list of conditions and the following disclaimer in the
  13.  *    documentation and/or other materials provided with the distribution.
  14.  * 3. All advertising materials mentioning features or use of this software
  15.  *    must display the following acknowledgement:
  16.  *    This product includes software developed by the University of
  17.  *    California, Berkeley and its contributors.
  18.  * 4. Neither the name of the University nor the names of its contributors
  19.  *    may be used to endorse or promote products derived from this software
  20.  *    without specific prior written permission.
  21.  *
  22.  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
  23.  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  24.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  25.  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
  26.  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  27.  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  28.  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  29.  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  30.  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  31.  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  32.  * SUCH DAMAGE.
  33.  */
  34.  
  35. /*
  36.  * $Id: config.h,v 6.39 1993/01/07 03:10:38 mcooper Exp mcooper $
  37.  * @(#)config.h
  38.  */
  39.  
  40. #ifndef __config_h__
  41. #define __config_h__
  42.  
  43. /*
  44.  * Configuration parameters
  45.  */
  46.  
  47. #include OS_H
  48.  
  49. /*
  50.  * Include system pathname header file.  Usually this is <paths.h>.  
  51.  * If your system doesn't have such a file, use "paths.h"
  52.  */
  53. #if    defined(PATHS_H)
  54. #    include PATHS_H
  55. #else
  56. #    include "paths.h"
  57. #endif
  58.  
  59. /*
  60.  * Define _PATH_OLDRDIST to be the name of the original rdist that
  61.  * was distributed with 4.3BSD.  
  62.  * 
  63.  * If you want to be backwards compability with the old rdist, uncomment
  64.  # the "#define" line.  If you don't want to be backwards compability or 
  65.  * don't have the old rdist, then uncomment the "#undef" line.
  66.  */
  67. #define _PATH_OLDRDIST    "/usr/ucb/oldrdist"    /* Enable compat */
  68. /*#undef  _PATH_OLDRDIST                /* Disable compat */
  69.  
  70. /*
  71.  * Check to see if file is on a NFS.  If it is, the file is
  72.  * skipped unless the hostname specified in the Distfile has
  73.  * a trailing "+".  e.g. "foobar+".  This feature is enabled by
  74.  * the -N option.  If your system does not support NFS or you don't
  75.  * want the -N option, undefine this.
  76.  */
  77. #define NFS_CHECK
  78.  
  79. /*
  80.  * Check to see if file on a Read-Only filesystem.  If it is, no
  81.  * attempt is made to update the file.  This feature is enabled by
  82.  * the -O option.
  83.  */
  84. #define RO_CHECK
  85.  
  86. /*
  87.  * Default value for the maximum number of clients to update at once.
  88.  * Can be changed with the -M option.
  89.  */
  90. #define MAXCHILDREN     4
  91.  
  92. /*
  93.  * Response Time Out interval (in seconds).
  94.  * Should be long enough to allow transfer of large files.
  95.  * The -t option can be used to override this value.
  96.  */
  97. #define RTIMEOUT     900
  98.  
  99. /*
  100.  * Define LOG_OPTS to be the syslog/openlog() logging options you
  101.  * wish to use.  Define to be 0 if you don't want any options.
  102.  * Define LOG_FACILITY to be the syslog/openlog() facility to log
  103.  * to.  Both LOG_OPTS and LOG_FACILITY values are defined in <syslog.h>
  104.  * If you don't have syslog, then undefine both values.
  105.  */
  106. #define LOG_OPTS        LOG_PID
  107. #if    defined(LOG_DAEMON)
  108. #    define LOG_FACILITY    LOG_DAEMON
  109. #endif
  110.  
  111. /*
  112.  * Syslog levels.  Define these to match the levels you want to log
  113.  * via syslog().  These are defined in <syslog.h>.  If you don't want
  114.  * a particuliar level logged _ever_, undefine it.  What is logged is
  115.  * usually controlled via command line options, so you normally should
  116.  * not need to undefine these.
  117.  */
  118. #define SL_FERROR    LOG_INFO        /* Fatal errors */
  119. #define SL_NERROR    LOG_INFO        /* Normal errors */
  120. #define SL_WARNING    LOG_INFO        /* Warnings */
  121. #define SL_CHANGE    LOG_INFO        /* Things that change */
  122. #define SL_INFO        LOG_INFO        /* General info */
  123. #define SL_NOTICE    LOG_NOTICE        /* General notices */
  124. #define SL_DEBUG    LOG_DEBUG        /* Debugging */
  125.  
  126. #endif    /* __config_h__ */
  127.